package com.android.sharecar.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class ConfirmCarInfoActivity extends Activity {

	private Button mConfirmAndGetInCar;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.confirm_carinfo);

		findViews();
		setListenerForViews();
	}

	private void findViews() {
		mConfirmAndGetInCar = (Button) findViewById(R.id.confirmCarInfo_btn_yesAndGetInCar);
	}

	private void setListenerForViews() {
		mConfirmAndGetInCar.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(ConfirmCarInfoActivity.this,
						MainTabWidgetActivity.class);
				intent.putExtra("state", 3);
				startActivity(intent);
			}
		});
	}

}
